Skip to content

Added Copy Link Type#402

Draft
phreed wants to merge 2 commits into
volllly:mainfrom
babeloff:copy-link-type
Draft

Added Copy Link Type#402
phreed wants to merge 2 commits into
volllly:mainfrom
babeloff:copy-link-type

Conversation

@phreed
Copy link
Copy Markdown

@phreed phreed commented Dec 24, 2025

#384

A nice feature of rotz is that the source and target for the links are necessarily in sync because they are the same file.
The copy does not have this feature.
As the main motivation for this feature is have encrypted files, I think it makes sense that the synchronization should be controlled by some indicator:

if neither source nor target file exists then both get created empty.
if the target already exists and the source does not then synchronization should happen from the target back to the source.
if the target does not exist and the source does then synchronization happens from the source to the target.
if both the source and target file exist then there is a choice:
    If the file is internal (the default): source -> target (the presumption is that the file will be managed in the .dotfiles)
    If the file is encrypted: then target -> source
    If the file is external: target -> source (the presumption is that the file is normally changes by some external force)

Update GitHub Actions to latest versions (checkout v6, setup-node v6,
upload-pages-artifact v4, slash-command-dispatch v5,
create-or-update-comment v5). Upgrade Rust dependencies in Cargo.toml
and Cargo.lock. Update Node.js dependencies including Docusaurus 3.9.2,
React 19.2.3, and TypeScript 5.9.3. Update docs Node.js version to 24.x.
Added `Copy` link type option for copying files instead of creating
symbolic or hard links.

Refactored link command into separate modules and added `tempfile`
dependency for testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant